package com.xhj.springbootproject.constant;

/**
 * @author ：Xionghaijun
 * @date ：Created in 2019/7/2 4:50 PM
 * @description：
 */
public enum ResultCodeEnum {
    PARAM_ERROR("100", "非法参数"),
    PARAM_NULL_ERROR("101", "参数不能为空"),
    BAD_REQUIRED("400", "找不到"),
    NOT_FOUND("404", "找不到资源"),
    INTERNAL_ERROR("500", "内部执行错误"),
    TIMEOUT("600", "超时"),
    NO_RESULT("666", "查无结果");

    private String code;
    private String desc;

    ResultCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
